cmake_minimum_required(VERSION 3.16)
project(yolov8_openvino)

set(CMAKE_CXX_STANDARD 17)
set(ngraph_DIR "/opt/intel/openvino_2023.2.0/runtime/cmake")
set(InferenceEngine_DIR "/opt/intel/openvino_2023.2.0/runtime/cmake")
set(OpenVINO_DIR "/opt/intel/openvino_2023.2.0/runtime/cmake")


set(INC_DIR "/opt/intel/openvino_2023.2.0/runtime/include")
set(LINK_DIR "/opt/intel/openvino_2023.2.0/runtime/lib/intel64")


find_package(OpenCV 4 REQUIRED)
find_package(OpenVINO)
find_package(OpenVINO REQUIRED)


include_directories(
        #OpenVINO推理引擎的头文件

        "/opt/intel/openvino_2023.2.0/runtime/include/ie"
        "/opt/intel/openvino_2023.2.0/runtime/include/ngraph"
        "/opt/intel/openvino_2023.2.0/runtime/include/openvino"


)

include_directories(
        ${OpenCV_INCLUDE_DIRS}
)

include_directories(
        ${INC_DIR}
)
link_directories(
)
link_libraries(libopenvino.so)
## link_libraries(libtbb.so.12)
add_executable(yolov8_openvino
        main.cpp
        inference.cpp
        inference.h
)
target_link_libraries(

        yolov8_openvino

        ${OpenCV_LIBS}
        ${InferenceEngine_LIBRARIES}
        libopenvino.so

)
# libtbb.so.12


